﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Aidbrella.Web.Common;
using Aidbrella.Web.Controllers;

namespace Aidbrella.Web.ViewModels
{
    /// <summary>
    /// Representation of a Project
    /// </summary>
    public class ProjectViewModel
    {
        public List<ProjectSiteViewModel> ProjectLocations { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public OrganizationViewModel Organization { get; set;}
        public List<UserViewModel> People { get; set; }
        public int ProjectId { get; set; }
        public int UserId { get; set; }
        public List<FeedController.UpdateData> Updates { get; set; }

        public ProjectViewModel()
        {
            Updates = new List<FeedController.UpdateData>();
        }
    }

    /// <summary>
    /// Representation of a Project on a given site
    /// </summary>
    public class ProjectSiteViewModel
    {
        public int ProjectId { get; set; }
        public ProjectStatus ProjectStatus { get; set; }
        public LocationViewModel Location { get; set; }
        public string Name { get; set; }
    }
}